package com.gurun.model.interceptor;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class HeadersInterceptor implements Interceptor {

    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();

        Request.Builder builder = request
                .newBuilder()
                .header("Content-type", "application/json; charset=UTF-8");

        Request build = builder
                .build();

        return chain.proceed(build);
    }
}
